iommu: don't need to map dom0 page when the PT is shared
authorJulien Grall <julien.grall@linaro.org>
Mon, 24 Feb 2014 11:33:00 +0000 (12:33 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 24 Feb 2014 11:33:00 +0000 (12:33 +0100)
commit9b51591c330672765d866a5ed4ed8e40c75bb1cf
treec2ebc46b4a01b353ece29223e2bfb0710d2ac6e4
parent2608662379d50e69b3bba4e6827fc910db9f64f8
iommu: don't need to map dom0 page when the PT is shared

Currently iommu_init_dom0 is browsing the page list and call map_page callback
on each page.

On both AMD and VTD drivers, the function will directly return if the page
table is shared with the processor. So Xen can safely avoid to run through
the page list.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/iommu.c